<?php
require_once PATH_SITE.'cn/royan/php/proxys/UserConnectProxy.proxy.php';
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
require_once PATH_SITE.'org/puremvc/php/patterns/command/SimpleCommand.php';
/**
 * Description of UserConnectCommand
 *
 * @author yanr
 */
class UserConnectCommand extends SimpleCommand
{
    //put your code here
    public function execute(INotification $notification)
    {
        IF ( !$this->facade->hasProxy("UserConnectProxy") )
            $this->facade->registerProxy( new UserConnectProxy() );
        
        $userConnectProxy = $this->facade->retrieveProxy( UserConnectProxy::NAME );
        $userConnectProxy->registerUser( $notification->getBody() );
    }
}

?>
